package com.tledu.zyf.servlet;

import java.io.IOException;
import java.util.Date;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/servlet/JstlFmtServlet")
public class JstlFmtServlet extends HttpServlet {
	@Override
	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		request.setAttribute("today", new Date());
		request.setAttribute("n", 123456789.123);
		request.setAttribute("p", 0.123456789);
		request.getRequestDispatcher("/jstl_fmt.jsp").forward(request, response);
	}
}
